<div class="nguonvons view">
<h2><?php  __('Nguonvon');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nguonvon['Nguonvon']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tennv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nguonvon['Nguonvon']['tennv']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Nguonvon', true), array('action' => 'edit', $nguonvon['Nguonvon']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Nguonvon', true), array('action' => 'delete', $nguonvon['Nguonvon']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $nguonvon['Nguonvon']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Nguonvons', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nguonvon', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tiens', true), array('controller' => 'tiens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tien', true), array('controller' => 'tiens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Tiens');?></h3>
	<?php if (!empty($nguonvon['Tien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Nguonvon Id'); ?></th>
		<th><?php __('Sotienvon'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nguonvon['Tien'] as $tien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tien['id'];?></td>
			<td><?php echo $tien['ctrinh_id'];?></td>
			<td><?php echo $tien['nguonvon_id'];?></td>
			<td><?php echo $tien['sotienvon'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'tiens', 'action' => 'view', $tien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'tiens', 'action' => 'edit', $tien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'tiens', 'action' => 'delete', $tien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $tien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Tien', true), array('controller' => 'tiens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
